package com.qfjy.wuhao;

/**
 * @author : obito
 * @version : 1.0
 * @date : 2022/9/13 18:01
 */
public class User {
    private String name;

    public User(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                '}';
    }

    public void sendMessage(String msg){
        CharRoom.sendMsg(this,msg);
    }
}
